↳ Prolog
↳ PrologToPiTRSProof
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(Xs, .(X, Ys)) → U1_ga(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
app_in_aag([], X, X) → app_out_aag([], X, X)
app_in_aag(.(X, Xs), Ys, .(X, Zs)) → U4_aag(X, Xs, Ys, Zs, app_in_aag(Xs, Ys, Zs))
U4_aag(X, Xs, Ys, Zs, app_out_aag(Xs, Ys, Zs)) → app_out_aag(.(X, Xs), Ys, .(X, Zs))
U1_ga(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_ga(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U2_ga(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → U3_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
U3_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(Xs, .(X, Ys)) → U1_ga(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
app_in_aag([], X, X) → app_out_aag([], X, X)
app_in_aag(.(X, Xs), Ys, .(X, Zs)) → U4_aag(X, Xs, Ys, Zs, app_in_aag(Xs, Ys, Zs))
U4_aag(X, Xs, Ys, Zs, app_out_aag(Xs, Ys, Zs)) → app_out_aag(.(X, Xs), Ys, .(X, Zs))
U1_ga(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_ga(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U2_ga(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → U3_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
U3_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
PERM_IN_GA(Xs, .(X, Ys)) → U1_GA(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
PERM_IN_GA(Xs, .(X, Ys)) → APP_IN_AAG(X1s, .(X, X2s), Xs)
APP_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → U4_AAG(X, Xs, Ys, Zs, app_in_aag(Xs, Ys, Zs))
APP_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → APP_IN_AAG(Xs, Ys, Zs)
U1_GA(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_GA(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
U1_GA(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → APP_IN_GGA(X1s, X2s, Zs)
APP_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → U4_GGA(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
APP_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_GGA(Xs, Ys, Zs)
U2_GA(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → U3_GA(Xs, X, Ys, perm_in_ga(Zs, Ys))
U2_GA(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → PERM_IN_GA(Zs, Ys)
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(Xs, .(X, Ys)) → U1_ga(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
app_in_aag([], X, X) → app_out_aag([], X, X)
app_in_aag(.(X, Xs), Ys, .(X, Zs)) → U4_aag(X, Xs, Ys, Zs, app_in_aag(Xs, Ys, Zs))
U4_aag(X, Xs, Ys, Zs, app_out_aag(Xs, Ys, Zs)) → app_out_aag(.(X, Xs), Ys, .(X, Zs))
U1_ga(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_ga(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U2_ga(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → U3_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
U3_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
PERM_IN_GA(Xs, .(X, Ys)) → U1_GA(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
PERM_IN_GA(Xs, .(X, Ys)) → APP_IN_AAG(X1s, .(X, X2s), Xs)
APP_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → U4_AAG(X, Xs, Ys, Zs, app_in_aag(Xs, Ys, Zs))
APP_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → APP_IN_AAG(Xs, Ys, Zs)
U1_GA(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_GA(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
U1_GA(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → APP_IN_GGA(X1s, X2s, Zs)
APP_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → U4_GGA(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
APP_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_GGA(Xs, Ys, Zs)
U2_GA(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → U3_GA(Xs, X, Ys, perm_in_ga(Zs, Ys))
U2_GA(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → PERM_IN_GA(Zs, Ys)
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(Xs, .(X, Ys)) → U1_ga(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
app_in_aag([], X, X) → app_out_aag([], X, X)
app_in_aag(.(X, Xs), Ys, .(X, Zs)) → U4_aag(X, Xs, Ys, Zs, app_in_aag(Xs, Ys, Zs))
U4_aag(X, Xs, Ys, Zs, app_out_aag(Xs, Ys, Zs)) → app_out_aag(.(X, Xs), Ys, .(X, Zs))
U1_ga(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_ga(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U2_ga(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → U3_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
U3_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDP
APP_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_GGA(Xs, Ys, Zs)
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(Xs, .(X, Ys)) → U1_ga(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
app_in_aag([], X, X) → app_out_aag([], X, X)
app_in_aag(.(X, Xs), Ys, .(X, Zs)) → U4_aag(X, Xs, Ys, Zs, app_in_aag(Xs, Ys, Zs))
U4_aag(X, Xs, Ys, Zs, app_out_aag(Xs, Ys, Zs)) → app_out_aag(.(X, Xs), Ys, .(X, Zs))
U1_ga(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_ga(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U2_ga(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → U3_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
U3_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
↳ PiDP
APP_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → APP_IN_GGA(Xs, Ys, Zs)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
↳ PiDP
APP_IN_GGA(.(X, Xs), Ys) → APP_IN_GGA(Xs, Ys)
From the DPs we obtained the following set of size-change graphs:
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
APP_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → APP_IN_AAG(Xs, Ys, Zs)
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(Xs, .(X, Ys)) → U1_ga(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
app_in_aag([], X, X) → app_out_aag([], X, X)
app_in_aag(.(X, Xs), Ys, .(X, Zs)) → U4_aag(X, Xs, Ys, Zs, app_in_aag(Xs, Ys, Zs))
U4_aag(X, Xs, Ys, Zs, app_out_aag(Xs, Ys, Zs)) → app_out_aag(.(X, Xs), Ys, .(X, Zs))
U1_ga(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_ga(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U2_ga(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → U3_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
U3_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
APP_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → APP_IN_AAG(Xs, Ys, Zs)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
APP_IN_AAG(.(X, Zs)) → APP_IN_AAG(Zs)
From the DPs we obtained the following set of size-change graphs:
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
U1_GA(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_GA(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
PERM_IN_GA(Xs, .(X, Ys)) → U1_GA(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
U2_GA(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → PERM_IN_GA(Zs, Ys)
perm_in_ga([], []) → perm_out_ga([], [])
perm_in_ga(Xs, .(X, Ys)) → U1_ga(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
app_in_aag([], X, X) → app_out_aag([], X, X)
app_in_aag(.(X, Xs), Ys, .(X, Zs)) → U4_aag(X, Xs, Ys, Zs, app_in_aag(Xs, Ys, Zs))
U4_aag(X, Xs, Ys, Zs, app_out_aag(Xs, Ys, Zs)) → app_out_aag(.(X, Xs), Ys, .(X, Zs))
U1_ga(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_ga(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U2_ga(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → U3_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
U3_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
U1_GA(Xs, X, Ys, app_out_aag(X1s, .(X, X2s), Xs)) → U2_GA(Xs, X, Ys, app_in_gga(X1s, X2s, Zs))
PERM_IN_GA(Xs, .(X, Ys)) → U1_GA(Xs, X, Ys, app_in_aag(X1s, .(X, X2s), Xs))
U2_GA(Xs, X, Ys, app_out_gga(X1s, X2s, Zs)) → PERM_IN_GA(Zs, Ys)
app_in_gga([], X, X) → app_out_gga([], X, X)
app_in_gga(.(X, Xs), Ys, .(X, Zs)) → U4_gga(X, Xs, Ys, Zs, app_in_gga(Xs, Ys, Zs))
app_in_aag([], X, X) → app_out_aag([], X, X)
app_in_aag(.(X, Xs), Ys, .(X, Zs)) → U4_aag(X, Xs, Ys, Zs, app_in_aag(Xs, Ys, Zs))
U4_gga(X, Xs, Ys, Zs, app_out_gga(Xs, Ys, Zs)) → app_out_gga(.(X, Xs), Ys, .(X, Zs))
U4_aag(X, Xs, Ys, Zs, app_out_aag(Xs, Ys, Zs)) → app_out_aag(.(X, Xs), Ys, .(X, Zs))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ RuleRemovalProof
U1_GA(app_out_aag(X1s, .(X, X2s))) → U2_GA(X, app_in_gga(X1s, X2s))
PERM_IN_GA(Xs) → U1_GA(app_in_aag(Xs))
U2_GA(X, app_out_gga(Zs)) → PERM_IN_GA(Zs)
app_in_gga([], X) → app_out_gga(X)
app_in_gga(.(X, Xs), Ys) → U4_gga(X, app_in_gga(Xs, Ys))
app_in_aag(X) → app_out_aag([], X)
app_in_aag(.(X, Zs)) → U4_aag(X, app_in_aag(Zs))
U4_gga(X, app_out_gga(Zs)) → app_out_gga(.(X, Zs))
U4_aag(X, app_out_aag(Xs, Ys)) → app_out_aag(.(X, Xs), Ys)
app_in_gga(x0, x1)
app_in_aag(x0)
U4_gga(x0, x1)
U4_aag(x0, x1)
U1_GA(app_out_aag(X1s, .(X, X2s))) → U2_GA(X, app_in_gga(X1s, X2s))
POL(.(x1, x2)) = 2 + 2·x1 + x2
POL(PERM_IN_GA(x1)) = 2·x1
POL(U1_GA(x1)) = 2·x1
POL(U2_GA(x1, x2)) = 2·x1 + 2·x2
POL(U4_aag(x1, x2)) = 2 + 2·x1 + x2
POL(U4_gga(x1, x2)) = 2 + 2·x1 + x2
POL([]) = 0
POL(app_in_aag(x1)) = x1
POL(app_in_gga(x1, x2)) = x1 + x2
POL(app_out_aag(x1, x2)) = x1 + x2
POL(app_out_gga(x1)) = x1
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ DependencyGraphProof
PERM_IN_GA(Xs) → U1_GA(app_in_aag(Xs))
U2_GA(X, app_out_gga(Zs)) → PERM_IN_GA(Zs)
app_in_gga([], X) → app_out_gga(X)
app_in_gga(.(X, Xs), Ys) → U4_gga(X, app_in_gga(Xs, Ys))
app_in_aag(X) → app_out_aag([], X)
app_in_aag(.(X, Zs)) → U4_aag(X, app_in_aag(Zs))
U4_gga(X, app_out_gga(Zs)) → app_out_gga(.(X, Zs))
U4_aag(X, app_out_aag(Xs, Ys)) → app_out_aag(.(X, Xs), Ys)
app_in_gga(x0, x1)
app_in_aag(x0)
U4_gga(x0, x1)
U4_aag(x0, x1)